package com.sinosoft.domain;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName strategy
 */
@Data
public class Strategy implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Long destId;

    /**
     * 
     */
    private String destName;

    /**
     * 
     */
    private Long themeId;

    /**
     * 
     */
    private String themeName;

    /**
     * 
     */
    private Long catalogId;

    /**
     * 
     */
    private String catalogName;

    /**
     * 
     */
    private String title;

    /**
     * 
     */
    private String subTitle;

    /**
     * 
     */
    private String summary;

    /**
     * 
     */
    private String coverUrl;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Integer isabroad;

    /**
     * 
     */
    private Integer viewnum;

    /**
     * 
     */
    private Integer replynum;

    /**
     * 
     */
    private Integer favornum;

    /**
     * 
     */
    private Integer sharenum;

    /**
     * 
     */
    private Integer thumbsupnum;

    /**
     * 
     */
    private Integer state;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Strategy other = (Strategy) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDestId() == null ? other.getDestId() == null : this.getDestId().equals(other.getDestId()))
            && (this.getDestName() == null ? other.getDestName() == null : this.getDestName().equals(other.getDestName()))
            && (this.getThemeId() == null ? other.getThemeId() == null : this.getThemeId().equals(other.getThemeId()))
            && (this.getThemeName() == null ? other.getThemeName() == null : this.getThemeName().equals(other.getThemeName()))
            && (this.getCatalogId() == null ? other.getCatalogId() == null : this.getCatalogId().equals(other.getCatalogId()))
            && (this.getCatalogName() == null ? other.getCatalogName() == null : this.getCatalogName().equals(other.getCatalogName()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getSubTitle() == null ? other.getSubTitle() == null : this.getSubTitle().equals(other.getSubTitle()))
            && (this.getSummary() == null ? other.getSummary() == null : this.getSummary().equals(other.getSummary()))
            && (this.getCoverUrl() == null ? other.getCoverUrl() == null : this.getCoverUrl().equals(other.getCoverUrl()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getIsabroad() == null ? other.getIsabroad() == null : this.getIsabroad().equals(other.getIsabroad()))
            && (this.getViewnum() == null ? other.getViewnum() == null : this.getViewnum().equals(other.getViewnum()))
            && (this.getReplynum() == null ? other.getReplynum() == null : this.getReplynum().equals(other.getReplynum()))
            && (this.getFavornum() == null ? other.getFavornum() == null : this.getFavornum().equals(other.getFavornum()))
            && (this.getSharenum() == null ? other.getSharenum() == null : this.getSharenum().equals(other.getSharenum()))
            && (this.getThumbsupnum() == null ? other.getThumbsupnum() == null : this.getThumbsupnum().equals(other.getThumbsupnum()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDestId() == null) ? 0 : getDestId().hashCode());
        result = prime * result + ((getDestName() == null) ? 0 : getDestName().hashCode());
        result = prime * result + ((getThemeId() == null) ? 0 : getThemeId().hashCode());
        result = prime * result + ((getThemeName() == null) ? 0 : getThemeName().hashCode());
        result = prime * result + ((getCatalogId() == null) ? 0 : getCatalogId().hashCode());
        result = prime * result + ((getCatalogName() == null) ? 0 : getCatalogName().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getSubTitle() == null) ? 0 : getSubTitle().hashCode());
        result = prime * result + ((getSummary() == null) ? 0 : getSummary().hashCode());
        result = prime * result + ((getCoverUrl() == null) ? 0 : getCoverUrl().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getIsabroad() == null) ? 0 : getIsabroad().hashCode());
        result = prime * result + ((getViewnum() == null) ? 0 : getViewnum().hashCode());
        result = prime * result + ((getReplynum() == null) ? 0 : getReplynum().hashCode());
        result = prime * result + ((getFavornum() == null) ? 0 : getFavornum().hashCode());
        result = prime * result + ((getSharenum() == null) ? 0 : getSharenum().hashCode());
        result = prime * result + ((getThumbsupnum() == null) ? 0 : getThumbsupnum().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", destId=").append(destId);
        sb.append(", destName=").append(destName);
        sb.append(", themeId=").append(themeId);
        sb.append(", themeName=").append(themeName);
        sb.append(", catalogId=").append(catalogId);
        sb.append(", catalogName=").append(catalogName);
        sb.append(", title=").append(title);
        sb.append(", subTitle=").append(subTitle);
        sb.append(", summary=").append(summary);
        sb.append(", coverUrl=").append(coverUrl);
        sb.append(", createTime=").append(createTime);
        sb.append(", isabroad=").append(isabroad);
        sb.append(", viewnum=").append(viewnum);
        sb.append(", replynum=").append(replynum);
        sb.append(", favornum=").append(favornum);
        sb.append(", sharenum=").append(sharenum);
        sb.append(", thumbsupnum=").append(thumbsupnum);
        sb.append(", state=").append(state);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}